/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/<a href="https://www.kaaction.com">KAA</a>"><a href="https://www.kaaction.com">KAA</a></a> All rights reserved.
 */
package com.kaaction.modules.ka.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.ka.entity.SalesReturn;
import com.kaaction.modules.ka.entity.Statistics;
import com.kaaction.modules.ka.dao.SalesReturnDao;

/**
 * 退货管理Service
 * @author huanghaiming
 * @version 2017-04-26
 */
@Service
@Transactional(readOnly = true)
public class SalesReturnService extends CrudService<SalesReturnDao, SalesReturn> {

	public SalesReturn get(String id) {
		return super.get(id);
	}
	
	public List<SalesReturn> findList(SalesReturn salesReturn) {
		return super.findList(salesReturn);
	}
	
	public Page<SalesReturn> findPage(Page<SalesReturn> page, SalesReturn salesReturn) {
		return super.findPage(page, salesReturn);
	}
	
	@Transactional(readOnly = false)
	public void save(SalesReturn salesReturn) {
		super.save(salesReturn);
	}
	
	@Transactional(readOnly = false)
	public void delete(SalesReturn salesReturn) {
		super.delete(salesReturn);
	}

	@Transactional(readOnly = false)
	public void updateLogistics(SalesReturn salesReturn) {
		super.dao.updateLogistics(salesReturn);
	}

	public List<SalesReturn> findSalesReturn(SalesReturn salesReturn) {
		return super.findList(salesReturn);
	}

	public Statistics selStatistics(SalesReturn salesReturn) {
		return super.dao.selStatistics(salesReturn);
	}
	
}